#ifndef RANKINGVIEW_H
#define RANKINGVIEW_H

#include <QWidget>
#include<QVariant>
#include <QTimer>
#include <QFile>
#include <QTextStream>
#include "fileprocess.h"

namespace Ui {
class RankingView;
}

class RankingView : public QWidget
{
    Q_OBJECT

public:
    explicit RankingView(QWidget *parent = nullptr);
    ~RankingView();
    QVariant score;
    QVariant userName;
    QVariant startDis;   //排行榜刷新标志位


//信号的定义
signals:
    void RenewSignal();
    void ExitSignal();

public slots:

private slots:
    void on_btnRestart_clicked();   //点击重新开始游戏按键
    void on_btnExit_clicked();   //点击退出游戏按键
    void timerUpdate();   //定时器响应函数

private:
    Ui::RankingView *ui;
    QList<QString> fileContent;   //读取文件里的内容

};
#endif // RANKINGVIEW_H
